<div class="container-wrapper">
  <h2>新增笔记</h2>
{{#if note}}
  <h4>笔记 {{ note.title }} - {{ note.content }} 新增成功</h4>
{{/if}}
<form action="/add-note" method="post">
  <table>
    <tbody>
    {{#if titleError}}
    <tr>
      <td>标题不能为空</td>
    </tr>
    {{/if}}
    <tr>
      <td>
        *<input type="text" class="input" placeholder="笔记标题" name="title" value={{ title }} >
      </td>
      <td>
        <select name="week" class="icon-select">
          <option value="">全部</option>
          <option value="1">星期一</option>
          <option value="2">星期二</option>
          <option value="3">星期三</option>
          <option value="4">星期四</option>
          <option value="5">星期五</option>
          <option value="6">星期六</option>
          <option value="7">星期日</option>
        </select>
      </td>
      <td>
        <select name="weather" class="icon-select">
          <option value="">全部</option>
          <option value="1">晴天</option>
          <option value="2">多云</option>
          <option value="3">阴天</option>
          <option value="4">雨天</option>
          <option value="5">雪天</option>
          <option value="6">雷暴</option>
          <option value="7">温暖</option>
          <option value="8">凉爽</option>
        </select>
      </td>            
    </tr>
    <tr>
      <td>
        <textarea placeholder="笔记内容" name="content" rows="10" cols="80"></textarea>
      </td>
    </tr>
    <tr>
      <td>
        <input type="reset" text="重置" class="btn btn-default">
      </td>
      <td>
        <input type="submit" text="提交" class="btn btn-primary">
      </td>
    </tr>
    </tbody>
  </table>
</form>
</div>